package com.work.chat.custom.server.pojo.dto;

import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.io.Serializable;
import java.math.BigDecimal;

@Data
public class InsertProductDTO implements Serializable {

    /**
     * 商品条形码
     */
    @NotBlank(message = "商品条形码必须提交")
    private String productCommodityCode;

    /**
     * 商品名称
     */
    @NotBlank(message = "商品名称必须提交")
    private String productTitle;

    /**
     * 商品进货价
     */
    @NotNull(message = "商品进货价必须提交")
    private BigDecimal purchasePrice;

    /**
     * 商品零售价
     */
    @NotNull(message = "商品零售价必须提交")
    private BigDecimal retailPrice;

    @NotNull(message = "商品类型必须提交")
    private Integer typeId;
}
